import datetime
from applications.extensions import db


class Fire(db.Model):
    __tablename__ = 'admin_fire'
    id = db.Column(db.Integer, primary_key=True, autoincrement=True, comment='id')
    Name = db.Column(db.String(20), comment='设施名称')
    Ring = db.Column(db.String(20), comment='报警来源')
    create_at = db.Column(db.DateTime, default=datetime.datetime.now, comment='记录时间')


class Rectification(db.Model):
    __tablename__ = 'admin_rectification'
    id = db.Column(db.Integer, primary_key=True, autoincrement=True, comment='id')
    Name = db.Column(db.String(20), comment='单位名称')
    People = db.Column(db.String(20), comment='检查人')
    Register = db.Column(db.String(20), comment='登记情况')
    Rect = db.Column(db.String(20), comment='是否整改')
    create_at = db.Column(db.DateTime, default=datetime.datetime.now, comment='记录时间')
